package org.gdpu.model;


/**
 * 考试类型
 */
public enum ExaminationType {
    /**
     * 练习
     */
    PRACTICE {
        public int getExaminationType() {
            return 0;
        }
    },
    /**
     * 考试
     */
    EXAMINATION {
        public int getExaminationType() {
            return 1;
        }
    },
    /**
     * 测验
     */
    TEST {
        public int getExaminationType() {
            return 2;
        }
    };

    public abstract int getExaminationType();

    @Override
    public String toString() {
        switch (this) {
            case PRACTICE:
                return "练习";
            case EXAMINATION:
                return "考试";
            case TEST:
                return "测试";
            default:
                return "Error";
        }
    }
}
